package alit.generator.bl.populator;

import alit.generator.bl.generator.Context;

import java.util.Random;

/**
 * User: Alexander Litvinenko
 * Date: 11/19/11
 * Time: 2:02 PM
 */
public class IntPopulatorKit extends PopulatorKit {

    public static final String TYPE = "int";

    public static class FromAllRangePopulator implements IPopulator {

        public static String getId() {
            return "fromAllRange";
        }

        public String populate(Context context) {
            Random random = new Random();
            return String.valueOf(random.nextInt());
        }
    }

    @Override
    public String getSqlDialect() {
        return DialectUtils.MS_SQL_SERVER;
    }

    @Override
    public String getTypeName() {
        return TYPE;
    }

}